import type { illustrateState } from '@/types/form'

const list: illustrateState[] = [
  {
    labelKey: 'RowLayoutForm.zdyStyle',
    title: '宫格样式',
    language: 'json',
    isDesc: false,
    key: ''
  },
  {
    labelKey: 'ColLayoutForm.zdyStyle',
    title: 'Col自定义样式',
    language: 'json',
    isDesc: false,
    key: ''
  },
  {
    labelKey: 'TextInputForm.countGraphemes',
    title: '计算输入数字',
    language: 'javascript',
    isDesc: true,
    key: 'CountGraphemes'
  },
  {
    labelKey: 'InputNumberForm.format',
    title: 'format格式化值的方法',
    language: 'javascript',
    isDesc: true,
    key: 'InputNumberFormat'
  },
  {
    labelKey: 'InputNumberForm.parse',
    title: 'parse解析输入的字符串',
    language: 'javascript',
    isDesc: true,
    key: 'InputNumberParse'
  },
  {
    labelKey: 'formItem.feedback',
    title: 'feedback表项的反馈信息',
    language: 'javascript',
    isDesc: true,
    key: 'FormItemFeedback'
  },
  {
    labelKey: 'formItem.validationStatus',
    title: 'validation-status表单的验证状态',
    language: 'javascript',
    isDesc: true,
    key: 'FormItemValidationStatus'
  },
  {
    labelKey: 'formItem.labelStyle',
    title: 'label-style标签的样式',
    language: 'json',
    isDesc: false,
    key: ''
  },
  {
    labelKey: 'SelectInputForm.filter',
    title: '过滤器函数',
    language: 'javascript',
    isDesc: true,
    key: 'SelectFilter'
  }
]

export default list

export function getDescInfo(labelKey: string) {
  const info = list.find((el: illustrateState) => el.labelKey === labelKey)
  return info
}
